<template>
  <div>
    你好,{{name}}
  </div>
</template>

<script>
  import {getAction} from "@api/manage";

  export default {
    name: "HelloWorld",
    data(){
      return {
        name:"",
        url:"/test/bxsyDemo/getName"
      }
    },
    methods:{
      getName(){
        getAction(this.url).then(r=>{
          this.name = r;
        });
      }
    },
    created() {
      this.getName();
    }
  }

</script>

<style scoped>

</style>